package com.iotek.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.iotek.dao.IBusinessDao;
import com.iotek.entity.Business;
import com.iotek.entity.Dispathing;
import com.iotek.entity.Order;
import com.iotek.service.IBusinessService;

@Service
public class BusinessServiceImpl implements IBusinessService{
	@Resource
	private IBusinessDao businessDao;
	@Override
	public List<Order> selectOrder(Order order) {
		return businessDao.selectOrder(order);
	}

	@Override
	public List<Business> selectMessage(Order order) {
		return businessDao.selectMessage(order);
	}

	@Override
	public boolean addDispathing(Dispathing dispathing) {
		return businessDao.addDispathing(dispathing);
	}

	@Override
	public boolean insertBusiness(Business business) {
		return businessDao.insertBusiness(business);
	}

	@Override
	public Business selectBusiness(Business business) {
		return businessDao.selectBusiness(business);
	}
	

}
